import request from '@/utils/request'

export const getSeminarList = (query) => {
  return request({
    url: '/business/conference/list',
    method: 'get',
    params: query
  })
}

export const getSeminarById = (conferenceId) => {
  return request({
    url: `/business/conference/${conferenceId}`,
    method: 'get'
  })
}

export const addSeminar = (data) => {
  return request({
    url: '/business/conference',
    method: 'post',
    data
  })
}

export const modifySeminar = (data) => {
  return request({
    url: `/business/conference`,
    method: 'put',
    data
  })
}

export const delSeminars = (conferenceIds) => {
  return request({
    url: `/business/conference/${conferenceIds}`,
    method: 'delete'
  })
}
